home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCDDDDooooppppeeeennnn((((3333ddddmmmm)))) CCCCDDDDooooppppeeeennnn((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- CDopen - opens a CD-ROM drive for audio use
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////ccccddddaaaauuuuddddiiiioooo....hhhh>>>>
-
- CCCCDDDDPPPPLLLLAAAAYYYYEEEERRRR**** CCCCDDDDooooppppeeeennnn((((cccchhhhaaaarrrr**** ddddeeeevvvv,,,, cccchhhhaaaarrrr**** ddddiiiirrrreeeeccccttttiiiioooonnnn))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _d_e_v The name of the devscsi file associated with the CD-ROM
- device. E.g. /dev/scsi/sc0d4l0. If _d_e_v is NULL, then
- CCCCDDDDooooppppeeeennnn((((3333ddddmmmm)))) will consult the hardware inventory table to
- locate a CD-ROM drive.
-
- _d_i_r_e_c_t_i_o_n A pointer to one of "r", "w", or "rw" indicating the
- direction of the I/O desired.
-
- RRRREEEETTTTUUUURRRRNNNNEEEEDDDD VVVVAAAALLLLUUUUEEEE
- Upon successful completion, CCCCDDDDooooppppeeeennnn((((3333ddddmmmm)))) returns a pointer to a CCCCDDDDPPPPLLLLAAAAYYYYEEEERRRR,
- an opaque type defined in _c_d_a_u_d_i_o._h. Otherwise a value of null (0) is
- returned and _e_r_r_n_o is set to indicate the error.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- CCCCDDDDooooppppeeeennnn((((3333ddddmmmm)))) opens the devscsi device associated with the CD-ROM and
- determines if the device is a recognized type of CD-ROM drive.
- Recognized devices are Sony and Toshiba. If it is successful it allocates
- and initializes a CCCCDDDDPPPPLLLLAAAAYYYYEEEERRRR structure for the device and returns a pointer
- to it. You use this structure in all function calls that access the CD-
- ROM.
-
- The device is opened for reading, writing, or reading and writing
- according to the ddddiiiirrrreeeeccccttttiiiioooonnnn argument. Currently only reading is
- supported. This argument provides a path forward toward writable CD's.
- CCCCDDDDooooppppeeeennnn((((3333ddddmmmm)))) also attempts to select the CD-ROM mode that enables transfer
- of audio data from audio CD's across the SCSI bus. Only the Toshiba CD-
- ROM supports this feature. The _s_c_s_i__a_u_d_i_o flag is set in the CCCCDDDDSSSSTTTTAAAATTTTUUUUSSSS
- structure [see CCCCDDDDggggeeeettttssssttttaaaattttuuuussss((((3333ddddmmmm))))] to indicate whether the mode was
- successfully selected. The opened CD-ROM can be used as a player
- regardless of the success or failure of this operation.
-
- CCCCDDDDooooppppeeeennnn((((3333ddddmmmm)))) will fail and no CDPLAYER structure will be created if one or
- more of the following are true:
-
-
- [ENODEV] No CD-ROM device could be found.
-
- [ENODEV] The device didn't respond to an inquiry request.
-
- [ENODEV] The CD-ROM was of an unrecognized type.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- CCCCDDDDooooppppeeeennnn((((3333ddddmmmm)))) CCCCDDDDooooppppeeeennnn((((3333ddddmmmm))))
-
-
-
- [ENOMEM] The malloc(3) call to acquire memory for the CDPLAYER
- structure failed.
-
- [EBUSY] The CD-ROM device was busy.
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- CDintro(3dm), CDclose(3dm), CDgetstatus(3dm), CDgettrackinfo(3dm),
- CDeject(3dm), CDreadda(3dm), CDseek(3dm), CDstop(3dm),
- CDtogglepause(3dm), CDallowremoval(3dm), CDpreventremoval(3dm),
- CDseek(3dm), CDseektrack(3dm), CDseekblock(3dm), CDplay(3dm),
- CDplayabs(3dm), CDplaytrack(3dm), CDplaytrackabs(3dm),
-
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Roger Chickering, Mark Callow
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-